package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksShippingDO;
import com.starlink.model.request.MallBooksShippingRequest;
import com.starlink.model.vo.MallBooksShippingVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksShippingDtoMapper {

    MallBooksShippingDtoMapper INSTANCE = Mappers.getMapper(MallBooksShippingDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksShippingDO
    * @return
    */
    MallBooksShippingVO do2VO(MallBooksShippingDO mallBooksShippingDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksShippingDO request2DO(MallBooksShippingRequest request);
}
